From 31fcf5b3a72ac6a7013f517fe501348c002429cd Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 17 Jan 2018 00:52:15 -0500 Subject: [PATCH] gsk: Handle GL textures These textures already have a GL texture in them, no need to create a new one. --- gsk/gl/gskgldriver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gsk/gl/gskgldriver.c b/gsk/gl/gskgldriver.c index 3d858e763d..6d1c417b77 100644 --- a/gsk/gl/gskgldriver.c +++ b/gsk/gl/gskgldriver.c @@ -370,6 +370,9 @@ gsk_gl_driver_get_texture_for_texture (GskGLDriver *driver, Texture *t; cairo_surface_t *surface; + if (GDK_IS_GL_TEXTURE (texture)) + return gdk_gl_texture_get_id (GDK_GL_TEXTURE (texture)); + t = gdk_texture_get_render_data (texture, driver); if (t) -- 2.30.2